package com.tiger.cloud.model.crm;

import java.sql.Timestamp;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.tiger.cloud.common.mybatis.TigerBaseEntity;
import com.tiger.cloud.enums.DeleteEnum;
import com.tiger.cloud.enums.ResourceTypeEnum;

import io.swagger.annotations.ApiModelProperty;
/**
 * 
 * crm_peers-同行信息
 *
 */
public class Peers extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 所属用户
	 */
	@ApiModelProperty(value = "所属用户")
    private Long userId;
	/**
	 * 同行ID   手工创建的工行信息，此ID为空
	 */
	@ApiModelProperty(value = "同行ID")
    private Long peerId;
	/**
	 * 备注  我对同行评价
	 */
	@ApiModelProperty(value = "备注 ")
    private String memo;
	/**
	 * 来源类型  0:CRM用户匹配、1:扫码、2:手机通讯录
	 */
	@ApiModelProperty(value = "来源类型  0:CRM用户匹配、1:扫码、2:手机通讯录 ")
    private ResourceTypeEnum resourceType;
	/**
	 * 来源   分享者、交换对象
	 */
	@ApiModelProperty(value = "来源 ：分享者、交换对象 ")
    private String resource;
	/**
	 * 星标朋友
	 */
	@ApiModelProperty(value = "星标朋友 ")
    private Integer isMark;
	/**
	 * 查询条件组合
	 */
	@ApiModelProperty(value = "查询条件组合 ")
    private String ext;
	/**
	 * 是否删除, 0:正常,1:删除
	 */
	@ApiModelProperty(value = "是否删除, 0:正常,1:删除 ")
    private DeleteEnum isDelete;
	/**
	 * 最后更新时间
	 */
	@ApiModelProperty(value = "最后更新时间 ")
    private Timestamp lastUpdateTime;
	/**
	 * 
	 */
	@ApiModelProperty(value = "最后比对时间")
	private Timestamp lastCompareTime;
	/**
	 * 创建时间
	 */
    private Timestamp createTime;
    
	/**
	 * 所属用户
	 */
	@ApiModelProperty(value = "所属用户")
    private User user;
	/**
	 * 我的同行
	 */
	@ApiModelProperty(value = "我的同行")
	private UserInfo userInfo;
	/**
	 * 等级
	 */
	private String level;
	/**
	 * 最后沟通时间
	 */
	@ApiModelProperty(value = "最后沟通时间")
	private Timestamp lastCommunicateTime;
	
    public Peers(){
    
    }
    
    public Timestamp getLastCommunicateTime() {
		return lastCommunicateTime;
	}

	public void setLastCommunicateTime(Timestamp lastCommunicateTime) {
		this.lastCommunicateTime = lastCommunicateTime;
	}

	public Timestamp getLastCompareTime() {
		return lastCompareTime;
	}

	public void setLastCompareTime(Timestamp lastCompareTime) {
		this.lastCompareTime = lastCompareTime;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}



	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

		public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Long getPeerId() {
        return this.peerId;
    }
    
    public void setPeerId(Long peerId) {
        this.peerId = peerId;
    }
    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }

    public ResourceTypeEnum getResourceType() {
		return resourceType;
	}

	public void setResourceType(ResourceTypeEnum resourceType) {
		this.resourceType = resourceType;
	}

	public String getResource() {
        return this.resource;
    }
    
    public void setResource(String resource) {
        this.resource = resource;
    }
    public Integer getIsMark() {
        return this.isMark;
    }
    
    public void setIsMark(Integer isMark) {
        this.isMark = isMark;
    }
    public String getExt() {
        return this.ext;
    }
    
    public void setExt(String ext) {
        this.ext = ext;
    }
   
    public DeleteEnum getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(DeleteEnum isDelete) {
		this.isDelete = isDelete;
	}

	public Timestamp getLastUpdateTime() {
        return this.lastUpdateTime;
    }
    
    public void setLastUpdateTime(Timestamp lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}